#include<bits/stdc++.h>
#define sd(n) scanf("%d",&n) 
#define sld(n) scanf("%lld",&n)
#define pd(n) printf("%d", (n))
#define pld(n) printf("%lld", n)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define fi first
#define se second
const int N=2e5;
#define INF 0x7fffffff
typedef long long int ll;
using namespace std;
//----------------------------------------------------------------------------//
int ans;
void dfs(int a,int b,int c)//a店,b酒
{
	if(a>0) dfs(a-1,b,c*2);
	if(b>0) dfs(a,b-1,c-1);
	if(a==0&&b==1&&c==1) ans++;
}
void solve()
{
	dfs(5,10,2);
	pd(ans);
	puts("");
}

int main()
{
	int T=1;
	//sd(T);
	while (T--)
	{
		solve();
	}
	return 0;
}